package com.clwl.supervise.superviseapp.entity.supervise;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
    * 体系检查标准
    */
@Data
@TableName(value = "JG_SCHEME_STANDARD")
//@KeySequence(value = "JG_SCHEME_STANDARD_SQE")
public class JgSchemeStandard implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 模板id
     */
    @TableField(value = "TEMPLATE_ID")
    private Long templateId;

    /**
     * 监管标准id
     */
    @TableField(value = "STANDARD_ID")
    private Long standardId;

    /**
     * 监管类别：1日常、2证后审查、3动态评分
     */
    @TableField(value = "SUP_CATEGORY")
    private String supCategory;

    /**
     * 监管环节code
     */
    @TableField(value = "SUP_PROCESS")
    private String supProcess;

    /**
     * 销售业态id
     */
    @TableField(value = "SPXS_ID")
    private Long spxsId;

    /**
     * 餐饮业态id
     */
    @TableField(value = "CYFW_ID")
    private Long cyfwId;

    /**
     * 生产食品类别id
     */
    @TableField(value = "SPSC_LB_ID")
    private Long spscLbId;

    /**
     * 生产食品子类id
     */
    @TableField(value = "SPSC_LB_ZL_ID")
    private Long spscLbZlId;

    /**
     * 特殊食品类别id
     */
    @TableField(value = "TSSP_LB_ID")
    private Long tsspLbId;

    /**
     * 特殊食品子类id
     */
    @TableField(value = "TSSP_LB_ZL_ID")
    private Long tsspLbZlId;

    /**
     * 检查项目名称
     */
    @TableField(value = "NAME")
    private String name;

    /**
     * 序号
     */
    @TableField(value = "SERIAL_NUM")
    private Double serialNum;

    /**
     * 体系检查id
     */
    @TableField(value = "SCHEME_PLAN_CHECK_ID")
    private Long schemePlanCheckId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "CREATOR_ID")
    private Long creatorId;

    /**
     * 创建人姓名
     */
    @TableField(value = "CREATOR")
    private String creator;

    /**
     * 创建人部门id
     */
    @TableField(value = "CREATE_DEPT_ID")
    private Long createDeptId;

    /**
     * 创建人部门名称
     */
    @TableField(value = "CREATE_DEPT_NAME")
    private String createDeptName;

    /**
     * 是否删除：0-否，1-是
     */
    @TableField(value = "DELETE_FLAG")
    private Integer deleteFlag;


    @TableField(exist = false )
    private Integer errorNum;



    //-----一下内容为页面显示需要------------------


    /**
     * 检查标准列表
     */
    @TableField(exist = false)
    private List<JgSchemeContent> jgSchemeContentList;



    private static final long serialVersionUID = 1L;
}
